package com.pai4j.user.repository.dao;

import com.pai4j.user.repository.entity.UserChatSettingEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface IUserChatSettingDAO extends JpaSpecificationExecutor<UserChatSettingEntity>, JpaRepository<UserChatSettingEntity, Long> {

    UserChatSettingEntity findByOwnerAccountAndPeerAccount(String ownerAccount, String peerAccount);

    boolean existsByOwnerAccountAndPeerAccount(String ownerAccount, String peerAccount);
}
